package cn.edu.cqut.test0514;

import java.util.Scanner;

public class Test1 {
	public static void main(String[] args) {
		System.out.println(Thread.currentThread().getName());
		MyClass thread = new MyClass();
		thread.start();
//		thread.run();
		
//		new Thread(()->{System.out.println("hello2");}).start();
		
//		Scanner scanner = new Scanner(System.in);
//		scanner.next();
//		scanner.close();
	}
}

class MyClass extends Thread
{
	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName()+": hello1");
//		super.run();
	}
}
